<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const option = {
            tooltip: {
                trigger: "item",
                show: true,
                formatter: function (params) {
                    let city = params.name + "市";
                    let res = "";
                    sswlist.map(item => {
                        if (item.properties.name == city) {
                            res = item.properties.info;
                        }
                    });
                    return res;
                },

                padding: 2,

                textStyle: {

                    fontSize: 8,

                    lineHeight: 10,

                    align: "left"

                }

            },

            geo: {

                map: "yns",

                zlevel: 10,

                show: true,

                layoutCenter: ["50%", "48%"],

                roam: false,

                layoutSize: "150%",

                zoom: 1,

                label: {

                    normal: {

                        show: true,

                        textStyle: {

                            fontSize: 12,

                            color: "#43D0D6"

                        }

                    }

                },

                itemStyle: {

                    normal: {

                        color: "#062031",

                        borderWidth: 1.1,

                        borderColor: "#43D0D6"

                    }

                },

                emphasis: {

                    areaColor: "#FFB800",

                    label: {

                        show: false

                    }

                },

                tooltip: {

                    trigger: "item",

                    show: true,

                    formatter: function (params) {

                        let city = params.name + "市";

                        let res = "";

                        sswlist.map(item => {

                            if (item.properties.name == city) {

                                res = item.properties.info;

                            }

                        });

                        return res;

                    },

                    padding: 2,

                    textStyle: {

                        fontSize: 8,

                        lineHeight: 10,

                        align: "left"

                    }
                }
            }
        }

    </script>
</body>

</html>